<script>
import BaseMonthList from '@/components/scroll/BaseMonthList'
import BusRecordItem from '../components/recorditem/BusRecordItem'
// import { getUnpayList } from '../api/api.js'
export default {
  extends: BaseMonthList,
  components: {
    'record-item': BusRecordItem
  },
  data() {
    return {
      up: {
        noMoreSize: 501,
        page: { size: 500 }
      },
      tradeNoList: null
    }
  },
  // computed: {
  //   getDetailItems() {
  //     return this.$refs.detailitem
  //   }
  // },
  methods: {
    getDetailList(item) {
      return item.LIST
    },
    // 根据消费类型动态获取消费模块组件
    getItemComponent(item) {
      return 'record-item'
    }
    // getTradeNoList() {
    //   if (this.tradeNoList === null) {
    //     this.tradeNoList = []
    //     this.getDetailItems.map(item => {
    //       this.tradeNoList.push(item.tradeNo)
    //     })
    //   }
    //   return this.tradeNoList
    // }
  }
}
</script>
